#define _CRT_SECURE_NO_WARNINGS
#include "DList.h"

void TestList()
{
	DLTNode* plist = ListInit();
	ListPushBack(plist, 10);
	ListPushBack(plist, 20);
	ListPushBack(plist, 30);
	ListPushBack(plist, 40);
	ListPrint(plist);
	ListPopBack(plist);
	ListPrint(plist);
	ListPushFront(plist, 50);
	ListPrint(plist);
	ListPopFront(plist);
	ListPrint(plist);
	ListInsert(plist->next->next, 100);
	ListPrint(plist);
	ListErase(plist->next->next);
	ListPrint(plist);
}

int main()
{
	TestList();
}